package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.store.StockInDetail;
import com.ruoyi.system.api.factory.RemoteFileFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 罗梦杰
 * date 2024/11/1 15:49
 * @version 1.0
 */
@FeignClient(contextId = "remoteStockInDetailService", value = ServiceNameConstants.STORE_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteStockInDetailService {
    @PostMapping("/stockInDetail/getStockInDetail")
    List<StockInDetail> getStockInDetail(@RequestBody Integer[] idArray);

    @GetMapping("/stockInDetail/getStockInDetailListByStockInId")
    R<List<StockInDetail>> getStockInDetailListByStockInId(@RequestParam("stockInId") Integer stockInId);

}
